<template>
<h1>下拉选框组件</h1>
  <el-select placeholder="请选择喜欢的城市" style="width: 200px;" v-model="city">
    <el-option label="上海" value="sh"></el-option>
    <el-option label="北京" value="bj"></el-option>
    <el-option label="广州" value="gz"></el-option>
    <el-option label="深圳" value="sz"></el-option>
  </el-select>
  <h4>选择城市：{{city}}</h4>
</template>
<script setup>

import {ref} from "vue";

const city = ref('sh')
</script>


<style scoped>

</style>